package cn.shuangbofu.guava.event_bus;

import com.google.common.eventbus.DeadEvent;
import com.google.common.eventbus.Subscribe;
import com.google.inject.Singleton;

/**
 * Created by shuangbofu on 2020-04-17 16:10
 */
@Singleton
public class TestHandler1 implements Observer {

    @Subscribe
    public void handleDeadEvent(DeadEvent event) {
        System.out.println("未处理");
    }

    @Subscribe
    public void stopEvent(Events.StopEvent event) {
        System.out.println("关闭");
    }

    @Subscribe
    public void runEvent(Events.StartEvent event) {

    }
}
